# Makefile for util_lib
#  Written by Mark A. Watson
#
include ../makeconfig

objects = \
util_global_types.o \
util_global_consts.o \
util_linalg.o \
util_lev2pchol.o \
util_lev3pchol.o \
util_cholesky_mo.o

all: objcomp

objcomp : $(objects)
	$(RM) libutil.a
	$(AR) $(ARFLAGS) libutil.a $(objects)
	$(RANLIB) libutil.a

clean :
	$(RM) *.o *.mod *.a

veryclean :
	$(RM) *.o *.mod *.a

.SUFFIXES:.f
.f.o: 
	$(F77) $(F77FLAGS) -c $<
.SUFFIXES:.f90
.f90.o: 
	$(F90) $(F90FLAGS) -c $<

